package org.iogame.util;

import com.iohao.game.action.skeleton.core.flow.FlowContext;

import java.lang.reflect.Parameter;

/**
 * 
 * @author lc
 * @since 2022/10/1
 */
public class TypeUtil {
    
    /**
     * 排除不处理的类型
     * @since 2022/10/1
     */
    public static boolean skipType(Parameter p){
        if (p.getType().isInstance(new FlowContext())) {
            return true;
        }
        if (p.getType().isInstance("")) {
            return true;
        }
        return false;
    }
}
